/**
 * f-club.cn
 * Copyright (c) 2009-2012 All Rights Reserved.
 */
package com.mjee.app.domain;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 
 * @author michael
 * @version $Id: Comment.java, v 0.1 2012-9-26 下午6:19:23 michael Exp $
 */
public class ArticleComment extends PrimaryKey {

	/** serial version UID */
	private static final long serialVersionUID = 4290088299338636516L;

	@NotEmpty
	@Size(max = 128)
	private String headline;
	@NotEmpty
	private String content;
	@NotNull
	private Date commentTime;
	public boolean deleted;
	
	private User user;
	private Article article;
	
	
	// ---- getter/setter methods ------------------------------------
	public String getHeadline() {
		return headline;
	}
	
	public void setHeadline(String headline) {
		this.headline = headline;
	}
	
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	
	public Date getCommentTime() {
		return commentTime;
	}
	
	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}
	
	public boolean isDeleted() {
		return deleted;
	}
	
	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	
	public User getUser() {
		return user;
	}
	
	public void setUser(User user) {
		this.user = user;
	}
	
	public Article getArticle() {
		return article;
	}
	
	public void setArticle(Article article) {
		this.article = article;
	}
	
}
